package daylight;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

//字符输入流
/*
    字符输入流顶层类: Reader
 */
public class Writer04 {
    public static void main(String[] args) throws IOException {
        FileReader fr = new FileReader("DAY12\\aa.txt");
        FileWriter fw = new FileWriter("DAY12\\bb.txt");
        int ch ;
        char[] chars = new char[1024];
        while ((ch = fr.read(chars))!=-1){
            fw.write(chars,0,ch);
        }
        fw.close();
        fr.close();
    }
}
